from selenium import webdriver
from selenium.webdriver.common.by import By
import datetime
import time
 
if __name__ == "__main__":
    now = datetime.datetime.now()
    print("login success:", now.strftime("%Y-%m-%d %H:%M:%S"))
    buy_times = input("请输入抢购时间(例如格式：2022-08-17 21:00:00):")
    targetTime = time.mktime(time.strptime(buy_times,"%Y-%m-%d %H:%M:%S"))
    print(targetTime)
    while time.time() < targetTime:
        print(time.time())
        time.sleep(0.001)
    